package com.example.weitechao.designpatten.observer;

public class Test {
	public static void main(String[] args) {
		//模拟一个3D的服务号
		ObjectFor3D subjectFor3d=new ObjectFor3D();
		
		Observer observer1=new Observer1(subjectFor3d);
		Observer observer2=new Observer2(subjectFor3d);
		
		subjectFor3d.setMsg("20140420的3D号码是：127" );
	//	subjectFor3d.setMsg("20140420的3D号码是：333" );
		
	}

}
